<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>非交互组件Jquery</title>
		<script type="text/javascript" src="jquery-3.6.0.min.js" charset="UTF-8"></script>
		<script type="text/javascript">
			function a(){
				 // let div1=document.getElementsByTagName("div")[0]
				// div1.innerHTML = "<h1>这是一个标题</h1>";
		$("div").html("<h1>这是一个标题</h1>")
			}
		</script>
	</head>
	<body>
		<button type="button" onclick="a()">按钮</button>
		<div>
			
		</div>
	</body>
</html>
